home *** CD-ROM | disk | FTP | other *** search
- Path: wizard.pn.com!news
- From: sudip@spr.com
- Newsgroups: comp.lang.c++
- Subject: VC++ 4.0 and C++ syntax
- Date: Mon, 15 Apr 1996 14:08:39 -0400
- Organization: Pioneer Global
- Message-ID: <317290A7.57C0@spr.com>
- NNTP-Posting-Host: dev3.spr.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.01 (Win95; U)
- CC: sudip@spr.com
-
- Greetings,
-
- VC++ 4.0 allows the following syntax to obtain the address of
- a class member function
-
- CObArray Ob;
- Ob.SetSize(1);
-
- if (0 == Ob.GetSize ) // compiles and links
- {
- return;
- }
-
- The call Ob.GetSize gets the address of the GetSize() fn on
- CObArray. Is this legal syntax?...the ARM indicates that the
- address of a member function (or a member) is obtained using
- the :: operator.
-
-
- Sudip Chakraborty
- SPR Inc.
-